# -*- coding: utf-8 -*-
import turtle


def draw_recursive_pentagram(i):
    # 计数器
    count = 1
    while count < 6:
        turtle.forward(100+i)
        turtle.right(144)
        count += 1

    # 绘制完，更新参数
    i += 10
    if i < 50:
        draw_recursive_pentagram(i)


def main():

    i = 1
    draw_recursive_pentagram(i)

    turtle.exitonclick()


if __name__ == "__main__":
    main()

